﻿@{
    ViewBag.Title = "Service List";
    ViewBag.Header = "Service";
    ViewBag.Caption = "Listing";
    ViewBag.AddNewUrl = Url.Action("ServiceMaintenance", "Service");
    ViewBag.XlsUrl = Url.Action("Export", "Service", new { type = "Excel" });
    ViewBag.PdfUrl = Url.Action("Export", "Service", new { type = "Pdf" });
    ViewBag.PrintUrl = Url.Action("Print", "Service");
}
<div id="listing_Service">
    <div class="box">
        <div class="box-body table-responsive">
            <table id="dt_Grid" class="table table-bordered table-striped">
                <thead>
                    <tr>
                        <th>Sno</th>
                        <th>Service Center</th>
                        <th>Staff Name</th>
                        <th>Service Date</th>
                        <th>Type</th>
                        <th>Edit | Delete | View</th>
                    </tr>
                </thead>
                @*<tbody id="dt_Rows"></tbody>*@
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>Tambaram</td>
                        <td>Jayenthan</td>
                        <td>01/07/2014</td>
                        <td>Display Service</td>
                        <td>
                            @Html.ActionLink("Edit", "Edit") |
                            @Html.ActionLink("Delete", "Delete") |
                            @Html.ActionLink("View", "View")
                        </td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>Tambaram</td>
                        <td>Sugitha.M</td>
                        <td>01/07/2014</td>
                        <td>Keypad Service</td>
                        <td>
                            @Html.ActionLink("Edit", "Edit") |
                            @Html.ActionLink("Delete", "Delete") |
                            @Html.ActionLink("View", "View")
                        </td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>Kanchipuram</td>
                        <td>Kumar.M</td>
                        <td>01/07/2014</td>
                        <td>Sound Service</td>
                        <td>
                            @Html.ActionLink("Edit", "Edit") |
                            @Html.ActionLink("Delete", "Delete") |
                            @Html.ActionLink("View", "View")
                        </td>
                    </tr>
                    <tr>
                        <td>4</td>
                        <td>Nellour</td>
                        <td>Kumar.M</td>
                        <td>01/07/2014</td>
                        <td>Display Service</td>
                        <td>
                            @Html.ActionLink("Edit", "Edit") |
                            @Html.ActionLink("Delete", "Delete") |
                            @Html.ActionLink("View", "View")
                        </td>
                    </tr>
                    <tr>
                        <td>5</td>
                        <td>Tambaram</td>
                        <td>Kumar.M</td>
                        <td>01/07/2014</td>
                        <td>Normal Service</td>
                        <td>
                            @Html.ActionLink("Edit", "Edit") |
                            @Html.ActionLink("Delete", "Delete") |
                            @Html.ActionLink("View", "View")
                        </td>
                    </tr>
                    <tr>
                        <td>6</td>
                        <td>Madurai</td>
                        <td>Devi</td>
                        <td>04/04/2014</td>
                        <td>Display Service</td>
                        <td>
                            @Html.ActionLink("Edit", "Edit") |
                            @Html.ActionLink("Delete", "Delete") |
                            @Html.ActionLink("View", "View")
                        </td>
                    </tr>
                    <tr>
                        <td>7</td>
                        <td>Selam</td>
                        <td>Raja.P</td>
                        <td>04/04/2014</td>
                        <td>Material bourn Service</td>
                        <td>
                            @Html.ActionLink("Edit", "Edit") |
                            @Html.ActionLink("Delete", "Delete") |
                            @Html.ActionLink("View", "View")
                        </td>
                    </tr>
                    <tr>
                        <td>8</td>
                        <td>Madurai</td>
                        <td>Sivanraj.K</td>
                        <td>25/08/2014</td>
                        <td>Water Service</td>
                        <td>
                            @Html.ActionLink("Edit", "Edit") |
                            @Html.ActionLink("Delete", "Delete") |
                            @Html.ActionLink("View", "View")
                        </td>
                    </tr>
                    <tr>
                        <td>9</td>
                        <td>Thirupathi</td>
                        <td>Moulika.K</td>
                        <td>02/05/2014</td>
                        <td>Sound Service</td>
                        <td>
                            @Html.ActionLink("Edit", "Edit") |
                            @Html.ActionLink("Delete", "Delete") |
                            @Html.ActionLink("View", "View")
                        </td>
                    </tr>
                    <tr>
                        <td>10</td>
                        <td>Karnadaca</td>
                        <td>Marimuthu.D</td>
                        <td>21/07/2014</td>
                        <td>Display Service</td>
                        <td>
                            @Html.ActionLink("Edit", "Edit") |
                            @Html.ActionLink("Delete", "Delete") |
                            @Html.ActionLink("View", "View")
                        </td>
                    </tr>
                    <tr>
                        <td>11</td>
                        <td>Chennai</td>
                        <td>Mathi.D</td>
                        <td>11/01/2014</td>
                        <td>Keypad Service</td>
                        <td>
                            @Html.ActionLink("Edit", "Edit") |
                            @Html.ActionLink("Delete", "Delete") |
                            @Html.ActionLink("View", "View")
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>

@*<script id="dataTable_Grid" type="text/x-jquery-tmpl">
        <tr>
            <td>${Name}</td>
            <td>${ContactPerson}</td>
            <td>${AddressLine1}, ${AddressLine2}, <br /> ${AddressCity}, ${AddressState} - ${AddressZip}</td>
            <td>${Mobile} <br /> ${Phone}</td>
            <td>${Email} <br /> ${Web}</td>
            <td><a href='@Url.Action("Maintenance")?Id=${Id}'>Edit</a> | <a href='@Url.Action("Maintenance")?Id=${Id}'>Delete</a></td>
        </tr>
    </script>

    <script type="text/javascript">
        $(document).ready(function () {
            $.getJSON('@Url.Action("GetCompanies", "Company")', function (result) {
                $.tmpl($('#dataTable_Grid'), result).appendTo('#dt_Rows');
                $('#dt_Grid').dataTable({
                    "bPaginate": true,
                    "bLengthChange": true,
                    "bFilter": true,
                    "bSort": true,
                    "bInfo": true,
                    "bAutoWidth": false
                });
            });
        });
    </script>*@


